package com.canal.admin.entity;


import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

/**
 * 角色
 * @author yangbo
 * @Date 2019-03-18 14:13
 */
@Getter
@Setter
public class SysRole {

    private Integer id;

    private Integer num;

    private Integer pid;

    private String name;

    private Integer deptId;

    private String tips;

    private Integer version;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysRole sysRole = (SysRole) o;
        return id.equals(sysRole.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
